/*
package com.jingdianjichi.swagger.filter;
import com.jingdianjichi.swagger.config.ApiVersion;
import com.jingdianjichi.swagger.config.ApiVersion;
import org.springdoc.core.filters.OpenApiMethodFilter;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.stereotype.Component;
import org.springframework.web.method.HandlerMethod;

import java.lang.reflect.Method;

*/
/**
 * 自定义API版本过滤器
 *//*

@Component
public class ApiVersionFilter implements OpenApiMethodFilter, ApiVersionF {

    @Override
    public boolean isMethodToInclude(HandlerMethod handlerMethod) {
        // 从方法上获取注解
        ApiVersion methodAnnotation = AnnotationUtils.findAnnotation(
                handlerMethod.getMethod(), ApiVersion.class);

        // 从类上获取注解
        ApiVersion classAnnotation = AnnotationUtils.findAnnotation(
                handlerMethod.getBeanType(), ApiVersion.class);

        // 这里可以根据实际需求实现版本控制逻辑
        // 示例：只包含有@ApiVersion注解的接口
        return methodAnnotation != null || classAnnotation != null;
    }

    @Override
    public boolean isMethodToInclude(Method method) {
        return false;
    }
}*/
